<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title><?php echo ($webData["title"]); ?></title>
		<link rel="shortcut icon" href=" __PUBLIC__/Imgs/bitbug_favicon.ico" />
		<link href="__PUBLIC__/Home/Css/header.css" rel="stylesheet" type="text/css" />	
	</head>
	<body>
		<div id="header_top">
<!--			<img src="__ROOT__/Uploads/thumb/th_<?php echo ($webData["logo"]); ?>" style="float:left;" width="150">-->
			<img src="__ROOT__/Uploads/thumb/st.jpg" style="float:left;" width="150">
			<form action="__APP__/Index/searchFoods" method="post">
				<input type="text" id="header_seach" name="fname">
				<input type="submit" id="header_sub" value="搜索">
			</form>

			<ul id="header_ul">
				<li><a href="__APP__/Index/index/">首页</a></li>
				<li><a href="__APP__/Bclass/index/">菜谱分类</a></li>
			</ul>
			<div id="header_login">
			<?php if(empty($_SESSION['uname'])): ?><span>
						<a href="__APP__/Login/login/" target="_blank">
							登录
						</a>
					</span>
					<span>
						<a href="__APP__/Login/reg/" target="_blank">
							注册
						</a>
					</span>
			<?php else: ?>				
				<span>
					<a href="">
					<?php echo (session('uname')); ?>
					</a>
				</span>
				<span>
					<a href="__APP__/Ucenter/index/pass">
					个人中心
					</a>
				</span>
				<span>
					<a href="__APP__/Carts/showCarts/">
					购物车
					</a>
				</span>
				<?php if(!empty($_SESSION['uMsg'])): ?><span>
					<a href="__APP__/Posts/details/form_number/<?php echo (session('uMsg')); ?>" class="clearMsg">
					新订单
					</a>
				</span><?php endif; ?>
				<span style="font-size:14px;">
					<a href="__APP__/Public/loginout/">
					退出
					</a>
				</span><?php endif; ?>
			</div>
		</div>
		<div style="clear:both;height:30px;"></div>
	</body>
</html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>订单详情</title>
            <link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/Css/posts_details.css">
</head>

<body>
	<div id="details_main">	     
                <div class="nav">
                    <img class="nav_o" src="__PUBLIC__/Home/Imgs/orders_actions_icon.gif">
                    <span>订单详情</span>
                </div>
                <div>              
                <table width="100%" cellspacing="0" cellpadding="0" align="center">
                                <tr>
                                    <th style="text-align:left;text-indent:3em;">名称</th>
                                    <th class="center">单价</th>
                                    <th class="center">数量</th>
                                    <th class="center">成交价</th>
                                </tr>
                                <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                            <td style="text-align:left;text-indent:3em;">
                                                    <?php echo ($vo["foodname"]); ?>
                                            </td>
                                            <td class="center"><?php echo ($vo["price"]); ?>￥</td>

                                            
                                            <td class="center">
                                                <?php echo ($vo["foods_number"]); ?>
                                            </td>
                                            <td class="center">
                                                <?php echo ($vo["nprice"]); ?>￥
                                            </td>
                                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>                               
                  </table>
                  </div>
                  <div style="text-align:right;height:50px;line-height:50px;clear:both;color:#AF5F5F;">
                                <p style="margin-right:50px;">总计:<?php echo ($udata["sum"]); ?>￥</p>
                   </div>
	</div>
</body>
</html>